let UserCreate = (name) => {
    return JSON.stringify({
        type: "create",
        name: name,
    })

}
let UserChallenge = (name) => {
    return JSON.stringify({
        type: "challenge",
        name: name,
    })

}
let RequestGame = (agree,name,target) => {
    return JSON.stringify({
        type: "RequestGame",
        agree: agree,
        name: name,
        target: target,
    })

}
let PlayChess = (name,target,color,x,y) => {
    return JSON.stringify({
        type: "PlayChess",
        name: name,
        target: target,
        color: color,
        x:x,
        y:y
    })

}
let UserList = () => {
    return JSON.stringify({
        type: "UserList"
    })

}
export default {
    UserCreate,
    UserChallenge,
    RequestGame,
    PlayChess,
    UserList,

    

}
